package com.yisu.auction.api.domain.response.prizePackage;

import com.yisu.auction.api.domain.vo.PrizePackageVos.ShowOrderListVo;
import com.yisu.auction.api.domain.vo.goodsInfoPackageVos.AuctionDescribeVo;
import com.yisu.auction.api.domain.vo.goodsInfoPackageVos.OfferPriceVo;
import com.yisu.auction.api.domain.vo.goodsInfoPackageVos.PrizeVo;

import java.util.List;

/**
 * author: 赵杰
 * Business Description：竞品详情响应实体
 * createTime：2017/8/17
 */
public class PrizeDetailResponse {

    private PrizeVo prizeVo;

    private List<OfferPriceVo> offerPriceVos; //出价列表 top 3

    private AuctionDescribeVo auctionDescribeVo; //竞拍说明

    private String auctionRule; //竞拍规则

    private List<ShowOrderListVo> showOrderListVos;

    public PrizeVo getPrizeVo() {
        return prizeVo;
    }

    public void setPrizeVo(PrizeVo prizeVo) {
        this.prizeVo = prizeVo;
    }

    public List<OfferPriceVo> getOfferPriceVos() {
        return offerPriceVos;
    }

    public void setOfferPriceVos(List<OfferPriceVo> offerPriceVos) {
        this.offerPriceVos = offerPriceVos;
    }

    public AuctionDescribeVo getAuctionDescribeVo() {
        return auctionDescribeVo;
    }

    public void setAuctionDescribeVo(AuctionDescribeVo auctionDescribeVo) {
        this.auctionDescribeVo = auctionDescribeVo;
    }

    public List<ShowOrderListVo> getShowOrderListVos() {
        return showOrderListVos;
    }

    public void setShowOrderListVos(List<ShowOrderListVo> showOrderListVos) {
        this.showOrderListVos = showOrderListVos;
    }

    public String getAuctionRule() {
        return "竞拍规则\n" +
                "1、所有商品竞拍初始价均为0元起，每出一次出价会消耗一定数量的拍币，同时商品价格以0.1元递增。\n" +
                "2、在初始倒计时内即可出价，初始倒计时后进入竞价倒计时，当您出价后，该件商品的计时器将被自动重置，以便其他用户进行出价竞争。如果没有其他用户对该件商品出价，计时器归零时，您便成功拍得了商品。\n" +
                "3、若竞拍成功，请在3天内以成交价购买竞拍商品，超过3天未下单，视为放弃，不返拍币。\n" +
                "4、若竞拍失败，将返还所消耗拍币的30%，赠币除外，如返还拍币数存在小数，将进行向下取整后返还。\n" +
                "5、平台严禁违规操作，最终解释权归全城竞拍所有。\n" +
                "声明：苹果公司不参与本软件任何形式的抽奖";
    }

    public void setAuctionRule(String auctionRule) {
        this.auctionRule = auctionRule;
    }
}
